import {
  SAVE_TITLE,
  SAVE_PRODUCT,
  SAVE_CATEGORYLIST
} from './constant'

export const saveTitleAction = (title) => ({
  type: SAVE_TITLE,
  title
})

export const saveProductAction = (product) => ({
  type: SAVE_PRODUCT,
  product
})
export const saveCategoryListAction = (categoryList) => ({
  type: SAVE_CATEGORYLIST,
  categoryList
})